<template>
	<view>

		<view class="uni-margin-wrap">
			
			<swiper class="swiper"  style="min-height: 100vh;" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
				:duration="duration">
				<swiper-item v-for="(item,index) in myimgs" :key="index" style="position: relative;">
							<button size="default" type="default" v-if="index===myimgs.length-1"
								style="color:#ffffff;backgroundColor:#1AAD19;borderColor:#1AAD19;
								z-index: 999;position: absolute; bottom: 5%; width: 100%;" 
								hover-class="is-hover" @click="toIndex()"> 进入首页
							</button>

					<image class="myimg" :src="item" mode="">
						
					</image>
					
				</swiper-item>
			</swiper>
			
		</view>
		
	</view>
</template>
<script>
	export default {
		data() {
			return {
				indicatorDots: true,
				autoplay: true,
				interval: 2000,
				duration: 500,
				sWidth:0,
				sHeight:0,
				myimgs:['/static/1.jpg','/static/2.jpg','/static/3.jpg','/static/1.jpg','/static/2.jpg',],
			
			};
		},
		methods: {
		  toIndex(){
			  uni.switchTab({
			  	url:'/pages/index/index'
			  })
		  }
		},
		
		onLoad() {
			let  _this = this
			uni.getSystemInfo({
				success(res) {
					_this.sWidth = res.screenWidth
					_this.sHeight = res.screenHeight
					// console.log(_this.sWidth,_this.sHeight)
				}
			})
		},
	}
</script>
<style lang="scss">
.uni-margin-wrap {
		width: 690rpx;
		width: 100%;
	}
	.swiper {
		height: 600rpx;
	}
	.swiper-item {
		display: block;
		height: 100%;
		line-height: 300rpx;
		text-align: center;
	}
	.swiper-list {
		margin-top: 40rpx;
		margin-bottom: 0;
	}
	.uni-common-mt {
		margin-top: 60rpx;
		position: relative;
	}
	.info {
		position: absolute;
		right: 20rpx;
	}
	.uni-padding-wrap {
		width: 550rpx;
		padding: 0 100rpx;
	}
	.myimg{
		width: 100%;
		height: 100%;
	}
	
	.is-hover {
		color: rgba(255, 255, 255, 0.6);
		background-color: #179b16;
		border-color: #179b16;
		
	  }
</style>
